package model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * The persistent class for the experiencia database table.
 * 
 */
@Entity
public class Experiencia implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int codExp;

	private String cargoExp;

	private String cidadeExp;

	private String contatoExp;

	@Temporal(TemporalType.DATE)
	private Date dtAdmExp;

	@Temporal(TemporalType.DATE)
	private Date dtDemEmp;

	private String empresaExp;

	private String telExp;

	private String ufExp;

	//bi-directional many-to-one association to Aluno
    @ManyToOne
	@JoinColumn(name="codAluno", nullable=false)
	private Aluno aluno;

	public Experiencia() {
	}

	public int getCodExp() {
		return this.codExp;
	}

	public void setCodExp(int codExp) {
		this.codExp = codExp;
	}

	public String getCargoExp() {
		return this.cargoExp;
	}

	public void setCargoExp(String cargoExp) {
		this.cargoExp = cargoExp;
	}

	public String getCidadeExp() {
		return this.cidadeExp;
	}

	public void setCidadeExp(String cidadeExp) {
		this.cidadeExp = cidadeExp;
	}

	public String getContatoExp() {
		return this.contatoExp;
	}

	public void setContatoExp(String contatoExp) {
		this.contatoExp = contatoExp;
	}

	public Date getDtAdmExp() {
		return this.dtAdmExp;
	}

	public void setDtAdmExp(Date dtAdmExp) {
		this.dtAdmExp = dtAdmExp;
	}

	public Date getDtDemEmp() {
		return this.dtDemEmp;
	}

	public void setDtDemEmp(Date dtDemEmp) {
		this.dtDemEmp = dtDemEmp;
	}

	public String getEmpresaExp() {
		return this.empresaExp;
	}

	public void setEmpresaExp(String empresaExp) {
		this.empresaExp = empresaExp;
	}

	public String getTelExp() {
		return this.telExp;
	}

	public void setTelExp(String telExp) {
		this.telExp = telExp;
	}

	public String getUfExp() {
		return this.ufExp;
	}

	public void setUfExp(String ufExp) {
		this.ufExp = ufExp;
	}

	public Aluno getAluno() {
		return aluno;
	}

	public void setAluno(Aluno aluno) {
		this.aluno = aluno;
	}
}